package cn.iocoder.yudao.module.product.controller.app.favorite.vo;

import cn.iocoder.yudao.module.product.controller.app.spu.vo.AppDenominationVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

@Schema(description = "用户 App - 商品收藏 Response VO")
@Data
public class AppFavoriteRespVO extends AppDenominationVO {

    @Schema(description = "编号", requiredMode = REQUIRED, example = "1")
    private Long id;

    @Schema(description = "商品 SPU 编号", requiredMode = REQUIRED, example = "29502")
    private Long spuId;

    // ========== 商品相关字段 ==========

    @Schema(description = "商品 SPU 名称", example = "赵六")
    private String spuName;

    @Schema(description = "商品封面图", example = "https://domain/pic.png")
    private String picUrl;

    @Schema(description = "录入货币", example = "USD")
    private String currencyCode;

    @Override
    public String getCardCurrencyCode() {
        return currencyCode;
    }
}
